/* ================================
   【通知渠道菜单】卡片样式
   ================================ */
.channel-type-card {
  cursor: pointer;
  transition: var(--transition-base);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  min-height: 180px;
  background: linear-gradient(135deg, var(--bg-white) 0%, rgba(248, 250, 252, 0.5) 100%);
  position: relative;
  overflow: hidden;
}

.channel-type-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: currentColor;
  opacity: 0.6;
}

.channel-type-card .card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  position: relative;
}

.channel-type-card .channel-icon {
  transition: var(--transition-base);
  margin-bottom: 12px;
  text-align: center;
  position: relative;
}

.channel-type-card .channel-icon i {
  font-size: 32px;
  display: block;
  background: linear-gradient(135deg, currentColor, currentColor);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.channel-type-card .card-title {
  font-size: 16px;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text-primary);
}

.channel-type-card .card-text {
  font-size: 13px;
  margin-bottom: 16px;
  color: var(--text-secondary);
}

.channel-type-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-4);
  border-color: currentColor;
}

.channel-type-card:hover .channel-icon {
  transform: scale(1.1);
}

.channel-type-card:hover .channel-icon i {
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

/* 不同通知渠道的主题色 */
.channel-type-card:has(.text-info) {
  color: var(--info-color);
}

.channel-type-card:has(.text-info)::before {
  background: linear-gradient(90deg, var(--info-color), var(--info-hover));
}

.channel-type-card:has(.text-info):hover {
  background: linear-gradient(135deg, rgba(24, 144, 255, 0.05) 0%, var(--bg-white) 50%);
  box-shadow: 0 8px 25px rgba(24, 144, 255, 0.2);
}

.channel-type-card:has(.text-success) {
  color: var(--success-color);
}

.channel-type-card:has(.text-success)::before {
  background: linear-gradient(90deg, var(--success-color), var(--success-hover));
}

.channel-type-card:has(.text-success):hover {
  background: linear-gradient(135deg, rgba(82, 196, 26, 0.05) 0%, var(--bg-white) 50%);
  box-shadow: 0 8px 25px rgba(82, 196, 26, 0.2);
}

.channel-type-card:has(.text-warning) {
  color: var(--warning-color);
}

.channel-type-card:has(.text-warning)::before {
  background: linear-gradient(90deg, var(--warning-color), var(--warning-hover));
}

.channel-type-card:has(.text-warning):hover {
  background: linear-gradient(135deg, rgba(250, 173, 20, 0.05) 0%, var(--bg-white) 50%);
  box-shadow: 0 8px 25px rgba(250, 173, 20, 0.2);
}

.channel-type-card:has(.text-primary) {
  color: var(--primary-color);
}

.channel-type-card:has(.text-primary)::before {
  background: linear-gradient(90deg, var(--primary-color), var(--primary-hover));
}

.channel-type-card:has(.text-primary):hover {
  background: linear-gradient(135deg, rgba(22, 119, 255, 0.05) 0%, var(--bg-white) 50%);
  box-shadow: 0 8px 25px rgba(22, 119, 255, 0.2);
}

/* 按钮样式优化 */
.channel-type-card .btn {
  border-radius: var(--radius-base);
  font-weight: 500;
  transition: var(--transition-base);
  position: relative;
  overflow: hidden;
}

.channel-type-card .btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s;
}

.channel-type-card .btn:hover::before {
  left: 100%;
}

.channel-type-card .btn-outline-info {
  background: linear-gradient(135deg, rgba(24, 144, 255, 0.1), rgba(24, 144, 255, 0.05));
}

.channel-type-card .btn-outline-info:hover {
  background: linear-gradient(135deg, var(--info-color), var(--info-hover));
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(24, 144, 255, 0.4);
}

.channel-type-card .btn-outline-success {
  background: linear-gradient(135deg, rgba(82, 196, 26, 0.1), rgba(82, 196, 26, 0.05));
}

.channel-type-card .btn-outline-success:hover {
  background: linear-gradient(135deg, var(--success-color), var(--success-hover));
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(82, 196, 26, 0.4);
}

.channel-type-card .btn-outline-warning {
  background: linear-gradient(135deg, rgba(250, 173, 20, 0.1), rgba(250, 173, 20, 0.05));
}

.channel-type-card .btn-outline-warning:hover {
  background: linear-gradient(135deg, var(--warning-color), var(--warning-hover));
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(250, 173, 20, 0.4);
}

.channel-type-card .btn-outline-primary {
  background: linear-gradient(135deg, rgba(22, 119, 255, 0.1), rgba(22, 119, 255, 0.05));
}

.channel-type-card .btn-outline-primary:hover {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(22, 119, 255, 0.4);
}

/* 通知渠道列表优化 */
#notification-channels-section .table {
  margin: 0;
}

#notification-channels-section .table th {
  background: var(--bg-gray);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 13px;
  padding: 16px 12px;
  border: none;
}

#notification-channels-section .table td {
  padding: 16px 12px;
  border-bottom: 1px solid var(--border-light);
  font-size: 13px;
  vertical-align: middle;
}

#notification-channels-section .table tbody tr:hover {
  background: var(--bg-gray);
}

#notification-channels-section .table tbody tr:last-child td {
  border-bottom: none;
}

/* 消息通知配置优化 */
#message-notifications-section .table {
  margin: 0;
}

#message-notifications-section .table th {
  background: var(--bg-gray);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 13px;
  padding: 16px 12px;
  border: none;
}

#message-notifications-section .table td {
  padding: 16px 12px;
  border-bottom: 1px solid var(--border-light);
  font-size: 13px;
  vertical-align: middle;
}

#message-notifications-section .table tbody tr:hover {
  background: var(--bg-gray);
}

#message-notifications-section .table tbody tr:last-child td {
  border-bottom: none;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .channel-type-card {
    margin-bottom: 12px;
    min-height: 160px;
  }

  .channel-type-card .card-body {
    padding: 16px;
  }

  .channel-type-card .channel-icon i {
    font-size: 28px;
  }

  .channel-type-card .card-title {
    font-size: 15px;
  }

  .channel-type-card .card-text {
    font-size: 12px;
  }

  .channel-type-card .btn {
    font-size: 12px;
    padding: 6px 12px;
  }

  #notification-channels-section .table th,
  #notification-channels-section .table td,
  #message-notifications-section .table th,
  #message-notifications-section .table td {
    padding: 12px 8px;
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .channel-type-card {
    min-height: 140px;
  }

  .channel-type-card .card-body {
    padding: 12px;
  }

  .channel-type-card .channel-icon i {
    font-size: 24px;
  }

  .channel-type-card .card-title {
    font-size: 14px;
  }

  .channel-type-card .card-text {
    font-size: 11px;
  }

  #notification-channels-section .table th,
  #notification-channels-section .table td,
  #message-notifications-section .table th,
  #message-notifications-section .table td {
    padding: 8px 6px;
    font-size: 11px;
  }
}

/* 大屏幕优化 */
@media (min-width: 1400px) {
  .channel-type-card {
    min-height: 200px;
  }

  .channel-type-card .card-body {
    padding: 24px;
  }

  .channel-type-card .channel-icon i {
    font-size: 36px;
  }

  .channel-type-card .card-title {
    font-size: 17px;
  }

  .channel-type-card .card-text {
    font-size: 14px;
  }
}
